package com.chorye.mail.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author Chorye
 * @since 2018-12-25
 */
@TableName("t_mail")
public class Mail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送人
     */
    @TableField("sendFrom")
    private String sendFrom;

    /**
     * 收件人
     */
    @TableField("sendTo")
    private String sendTo;

    /**
     * 主题
     */
    @TableField("mailSubject")
    private String mailSubject;

    /**
     * 邮件内容
     */
    @TableField("msg")
    private String msg;

    /**
     * 附件路径
     */
    @TableField("filePath")
    private String filePath;

    /**
     * 附件名称
     */
    @TableField("fileName")
    private String fileName;

    /**
     * 静态资源文件ID
     */
    @TableField("resourceId")
    private String resourceId;

    /**
     * 成功标识：0、成功，1、未成功
     */
    @TableField("successFlag")
    private String successFlag;

    /**
     * 重试次数
     */
    @TableField("repeatCount")
    private Integer repeatCount;


    public Integer getId(){
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSendFrom(){
        return sendFrom;
    }

    public void setSendFrom(String sendFrom) {
        this.sendFrom = sendFrom;
    }

    public String getSendTo(){
        return sendTo;
    }

    public void setSendTo(String sendTo) {
        this.sendTo = sendTo;
    }

    public String getMailSubject(){
        return mailSubject;
    }

    public void setMailSubject(String mailSubject) {
        this.mailSubject = mailSubject;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getFilePath(){
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName(){
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getResourceId(){
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getSuccessFlag(){
        return successFlag;
    }

    public void setSuccessFlag(String successFlag) {
        this.successFlag = successFlag;
    }

    public Integer getRepeatCount(){
        return repeatCount;
    }

    public void setRepeatCount(Integer repeatCount) {
        this.repeatCount = repeatCount;
    }

    @Override
    public String toString() {
        return "Mail{" +
        "id=" + id +
        ", sendFrom=" + sendFrom +
        ", sendTo=" + sendTo +
        ", mailSubject=" + mailSubject +
        ", msg=" + msg +
        ", filePath=" + filePath +
        ", fileName=" + fileName +
        ", resourceId=" + resourceId +
        ", successFlag=" + successFlag +
        ", repeatCount=" + repeatCount +
        "}";
    }
}